package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration//声明我是一个配置类
@ComponentScan({"com.itheima.service"})//声明此配置类扫描的包
@PropertySource("classpath:jdbc.properties")//加载配置文件
@Import({JdbcConfig.class,MybatisConfig.class})//导入其他配置类
@EnableTransactionManagement//开启事物管理
public class SpringConfig {

}
